<extend name="layout/main" />

<block name="HEADER">
	<style type="text/css">
		.layui-layer-page .layui-layer-content{
			overflow: initial;
		}
		#grid .layui-table-view .layui-table td .layui-table-cell{
			height: 36px;
		    line-height: 36px;
		}
		#grid .layui-btn+.layui-btn {
		    margin-left: 0;
		}
		.xw-layui-layer .layui-layer-content{
			padding: 0;
		}
		.xw-form .xw-form-formType-div{
			height: 100%;
		}
	</style>
</block>

<block name="CONTENT">
	<div class="wrapper">
		<div class="panel-heading">
			<control:search id="searchs" />
		</div>
		<div class="content">
			<control:grid id="grid" padding="0" height="100%" />
		</div>
	</div>

	<script id="tplExcelImport" type="text/html">
		<div id='excelImportFrom'></div>
	</script>
</block>

<block name="FOOTER">
	<script type="text/javascript">
		var page = (function(ns){

		    //页面初始化
		    ns.init=function(){

                //页面传值，选择了，就不显示。
				//
                // var filter=[{"field":"quarter(add_time)","opera":"=","value":$.getRequest("good_id")}];
                // form.$grids['grid'].load(filter);

		       ns.query();
		    }

		    //搜索事件
		    ns.query=function(){

		    	grid.load( searchs.getData() );
		    }



		    return ns;
		}({}));


		$(function(){ page.init();  });

	</script>
</block>